﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Org.BouncyCastle.Utilities.Encoders;

namespace Gfs.Smcrypto
{
    public class SmUtils
    {
        public static string StrToHex(string str)
        {
            return Encoding.ASCII.GetString(Hex.Encode(Encoding.UTF8.GetBytes(str))).ToUpper();
        }
    }
}
